package com.surveillance.BO;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.surveillance.DAO.NiveauSallesDao;
import com.surveillance.entities.NiveauSalles;

@Service("NiveauSallesBo")
public class NiveauSallesBo implements BOLayer<NiveauSalles> {
	@Autowired
	private NiveauSallesDao niveauSallesDao;

	public void setNiveauSallesDao(NiveauSallesDao niveauSallesDao) {
		this.niveauSallesDao = niveauSallesDao;
	}

	@Override
	public boolean save(NiveauSalles myEntity) {
		// TODO Auto-generated method stub
		niveauSallesDao.save(myEntity);
		return true;
	}

	@Override
	public void update(NiveauSalles myEntity) {
		// TODO Auto-generated method stub
		niveauSallesDao.update(myEntity);
		
	}

	@Override
	public void delete(NiveauSalles myEntity) {
		// TODO Auto-generated method stub
		niveauSallesDao.delete(myEntity);
	}

	@Override
	public NiveauSalles findByID(Long myEntityID) {
		// TODO Auto-generated method stub
		return niveauSallesDao.findByID(myEntityID);
	}

	@Override
	public List<NiveauSalles> findAll() {
		// TODO Auto-generated method stub
		return niveauSallesDao.findAll();
	}

	

}
